package com.ncdnapp.dao.po;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 企业端用户信息(CUser)实体类
 *
 * @author chenbin
 * @since 2023-12-26 11:47:20
 */
@Data
@Accessors(chain = true)
@Table("c_user")
public class CUserPO implements Serializable {
    @Id(keyType = KeyType.Auto)
    private Long id;
    /**
     * 类型(1:内部用户,2:企业用户)
     */
    @Column("type")
    private Integer type;
    @Column("account")
    private String account;
    @Column("password")
    private String password;
    @Column("name")
    private String name;
    @Column("head_img_file_id")
    private Long headImgFileId;
    @Column("phone")
    private String phone;
    /**
     * 微信小程序openid
     */
    @Column("wx_app_id")
    private String wxAppId;
    /**
     * 微信公众号openid
     */
    @Column("wx_id")
    private String wxId;
    @Column("wx_union_id")
    private String wxUnionId;
    @Column("wx_subscribed")
    private Integer wxSubscribed;
    @Column("change_company")
    private Integer changeCompany;
    /**
     * 创建时间
     */
    @Column("c_time")
    private LocalDateTime cTime;
    /**
     * 更新时间
     */
    @Column("u_time")
    private LocalDateTime uTime;
}

